<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <div v-text>{{num}}</div>
    <button v-on:click="num++">点击</button>
    <button @click="handle">点击1</button>

</div>
<script type="text/javascript" src="js/vue.min.js"></script>
<script type="text/javascript">
    var vm = new Vue({
        el: '#app',
        data: {
            num: 0
        },
        methods: {
            handle: function () {
                this.num++
            }
        }
    })
</script>
</body>
</html>